package com.onlineproject.dao;

import java.util.List;

import org.hibernate.LockMode;
import org.hibernate.Query;
import org.springframework.context.ApplicationContext;

import com.onlineproject.model.StuPro;

public interface StuProDaoInterface {
    
	public boolean update(StuPro transientInstance); 
	    	
    public boolean save(StuPro transientInstance);
    
	public void delete(StuPro persistentInstance);
    
    
    public StuPro findById( java.lang.Integer id);
    
    public List findStudentProject(String stuId,String relation);
    
    public StuPro findByStuIdPid(String stuId,int proId);
    
    public List findByExample(StuPro instance);
    
    public List findByProperty(String propertyName, Object value);

	public List findByStuId(Object stuId);
	
	public List findByProId(Object proId);
	
	public List findByRelation(Object relation);
	
	public List findAll();
	
    public StuPro merge(StuPro detachedInstance);

    public void attachDirty(StuPro instance);
    
    public void attachClean(StuPro instance);
}
